package cn.ytian.scashier;

import java.io.Serializable;

public class SalesItem implements Serializable {
    private String goodsID;
    private String goodsName;
    private double goodsPrice;
    private int amount;
    private double goodsSubtotal;

    public double getGoodsSubtotal() {
        return goodsSubtotal;
    }

    public void setGoodsSubtotal(double goodsSubtotal) {
        this.goodsSubtotal = goodsSubtotal;
    }

    public String getGoodsID() {
        return goodsID;
    }

    public void setGoodsID(String goodsID) {
        this.goodsID = goodsID;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public double getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public SalesItem(String goodsID, String goodsName, double goodsPrice, int amount, double goodsSubtotal) {
        this.goodsID = goodsID;
        this.goodsName = goodsName;
        this.goodsPrice = goodsPrice;
        this.amount = amount;
        this.goodsSubtotal = goodsSubtotal;
    }

    public SalesItem() {
    }

    @Override
    public String toString() {
        return "\t\t" + goodsID +
                "\t\t" + goodsName +
                "\t\t" + goodsPrice +
                "\t\t" + amount +
                "\t\t" + goodsSubtotal;
    }
}
